Computer Configuration > Administrative Templates > Firefox > Cookies
Both
HKLM\Software\Policies\Mozilla\Firefox
If this policy is enabled, cookies are allowed for the origins indicated, but removed at the end of the session. If a top level domain is specified (http://example.org), cookies are allowed for all subdomains as well. If this policy is disabled or not configured, the default cookie policy is followed.